package com.google.code.mergeinformer.service;

import com.google.code.mergeinformer.model.Task;

/**
 * @author Dmitry Golubev
 */
public interface TaskService extends ServiceBase<Task> {

    Task getByShortName(String projectShortName, String taskShortName);

    void schedule(Task task);

    void scheduleDelayed(Task task);

    boolean unschedule(Task task);

    Task execute(Task task);

    boolean isShortNameExists(String projectShortName, String takShortName);

    boolean isNameExists(String projectShortName, String taskName);
}
